package com.cn.jiyun;

import com.cn.jiyun.entity.pojo.Hotel;
import com.cn.jiyun.entity.pojo.Room;
import com.cn.jiyun.entity.vo.HotelVO;
import com.jiyun.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.awt.color.ICC_Profile;
import java.util.List;

@FeignClient(value = "hotel-service")
public interface HotelFeignClient {

    //查询全部
    @PostMapping("/hotel/findAll")
    public Result<List<Hotel>> getList(@RequestBody HotelVO hotelVo);
    @GetMapping("/findById/{Id}")
    public Result<Hotel> findById(@PathVariable("Id") Integer Id);


    @PostMapping("/selectRoom")
    public  Result<List<Room>> selectRoom(@RequestBody Room room);
    @GetMapping("/findRoomById/{RoomId}")
    public Result<Room> findRoomById(@PathVariable("RoomId") Integer RoomId);


}
